import json

from config import app_path

data = [
    [{
        "username": "大猪乔治",
        "mobile": "13899078431",
        "timeOfEntry": "2021-12-01",
        "formOfEmployment": 1,
        "workNumber": "777888", "departmentName": "测试",
        "departmentId": "1452603344685203456",
        "correctionTime": "2021-12-30T16:00:00.000Z"},
        [200, True, 10000, "新增成功"]
    ],
    [{
        "username": "大猪乔治",
        "mobile": None,
        "timeOfEntry": "2021-12-01",
        "formOfEmployment": 1,
        "workNumber": "777888", "departmentName": "测试",
        "departmentId": "1452603344685203456",
        "correctionTime": "2021-12-30T16:00:00.000Z"},
        [200, False, 10000, "请检查必填项"]
    ]
]
with open(app_path + "/data/add_data.json", "w", encoding="utf-8") as f:
    json.dump(data, f, indent=2, ensure_ascii=False)
